from tkinter import *

class Application(Frame):
    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.pack()
        self.createWidget()

    def createWidget(self):
        self.nameInput = Entry(self)
        self.nameInput.pack()
        self.helloLabel = Label(self, text="Hello")
        self.helloLabel.pack()
        self.quitButton = Button(self, text="Quit", command=self.quit)
        self.quitButton.pack()

app = Application()
app.master.title('hello world')
app.mainloop()